package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    //查询列表
    List<Category> findAll();

    //新增菜系
    void save(Category category);

    //修改菜系
    void update(Category category);

    //统计菜品数量
    Integer caipin(Long caipinid);

    //统计套餐数量
    Integer taocan(Long taocanid);

    //删除菜系
    void deleteMyId(Long id);
}
